﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GoogleFinance;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TestProject
{
    static class StockQuotePropertyComparer
    {
        public static void AreEqual(StockQuote target, StockQuote actual)
        {
            Assert.AreEqual(target.Change, actual.Change);
            Assert.AreEqual(target.Close, actual.Close);
            Assert.AreEqual(target.Company, actual.Company);
            Assert.AreEqual(target.Currency, actual.Currency);
            Assert.AreEqual(target.CurrentDateUtc, actual.CurrentDateUtc);
            Assert.AreEqual(target.CurrentTimeUtc, actual.CurrentTimeUtc);
            Assert.AreEqual(target.Divisor, actual.Divisor);
            Assert.AreEqual(target.Exchange, actual.Exchange);
            Assert.AreEqual(target.High, actual.High);
            Assert.AreEqual(target.Last, actual.Last);
            Assert.AreEqual(target.Low, actual.Low);
            Assert.AreEqual(target.MarketCap, actual.MarketCap);
            Assert.AreEqual(target.Open, actual.Open);
            Assert.AreEqual(target.PercentageChange, actual.PercentageChange);
            Assert.AreEqual(target.Symbol, actual.Symbol);
            Assert.AreEqual(target.TradeDateUtc, actual.TradeDateUtc);
            Assert.AreEqual(target.TradeTimeUtc, actual.TradeTimeUtc);
            Assert.AreEqual(target.Volume, actual.Volume);
        }
    }
}
